import request from '@/utils/request'

// 查询治疗免疫列表
export function listImmunization(query) {
    return request({
        url: '/immunization/immunization/list',
        method: 'get',
        params: query
    })
}

// 查询治疗免疫详细
export function getImmunization(id) {
    return request({
        url: '/immunization/immunization/' + id,
        method: 'get'
    })
}

// 新增治疗免疫
export function addImmunization(data) {
    return request({
        url: '/immunization/immunization',
        method: 'post',
        data: data
    })
}

// 修改治疗免疫
export function updateImmunization(data) {
    return request({
        url: '/immunization/immunization',
        method: 'put',
        data: data
    })
}

// 删除治疗免疫
export function delImmunization(id) {
    return request({
        url: '/immunization/immunization/' + id,
        method: 'delete'
    })
}
